package com.powerhua.privilege.web.action.convert;

import java.util.List;

import com.powerhua.privilege.domain.User;

public class UserConverter {
	
	public static String getInfoScriptStr(User user) {
		StringBuffer result = new StringBuffer("[");
		result.append("'" + user.getUserId() + "', ");
		result.append("'" + user.getUserName() + "', ");
		result.append("'" + user.getDomainId() + "', ");
		result.append("'" + user.getDescription() + "', ");
		result.append("'" + user.getCreateDate().toString() + "'");
		result.append("]");
		return result.toString();
	}
	
	public static String getListScriptStr(List list) {
		String result = "";
		return result;
	}
}
